package kr.bae.androidcomplete01.chapter07;

import kr.bae.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch07MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch07main);
	}

	public void mOnClick(View v) {
		Intent i = null;
		switch (v.getId()) {
		case R.id.ch07_btn01:
			i = new Intent(Ch07MainActivity.this, CustomViewEx.class);
			break;

		case R.id.ch07_btn02:
			i = new Intent(Ch07MainActivity.this, DrawBitmapEx.class);
			break;
		case R.id.ch07_btn03:
			i = new Intent(Ch07MainActivity.this, OffScreen.class);
			break;
			
		case R.id.ch07_btn04:
			i = new Intent(Ch07MainActivity.this, ShapeDrawbaleEx.class);
			break;
			
		case R.id.ch07_btn05:
			i = new Intent(Ch07MainActivity.this, ToastEx.class);
			break;

		default:
			break;
		}
		startActivity(i);
	}
}
